//
//  LBViewController.m
//  LBDownloader
//
//  Created by WuShiHai on 19/6/14.
//  Copyright (c) 2019 Lebbay All rights reserved.
//

#import "LBViewController.h"
#import <LBDownloader/LBDownloader.h>

@interface LBViewController ()

@end

@implementation LBViewController

- (void)viewDidLoad
{
    [super viewDidLoad];

//    NSString *host = @"http://api.vd.cn";
//    [LBDownloaderNetworkReachability startMonitor:host];
//    [[LBDownloaderManager manager] startWithSourceTypes:@[@"hotfix"]
//                                       sourceHandler:^(LBDownloaderModel * _Nonnull downloader, BOOL isLocal) {
//                                                 
//                                       } localCompleteHandler:^{
//                                           
//                                       } completeHandler:^(NSMutableDictionary<NSString *,NSNumber *> * _Nonnull result) {
//                                           
//                                       }];
	// Do any additional setup after loading the view, typically from a nib.
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
        
        [self performSelector:@selector(test) withObject:nil afterDelay:3];
    });
}

- (void)test {
    NSLog(@"test");
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
